package com.cobo.common.core;

import java.util.Map;

public interface CoboCache {

    boolean put(String key, Object value);

    boolean contain(String key);

    Object get(String key);

    boolean remove(String key);

    boolean remove(String key, String value);


    boolean expire(String key, long time);


    Map<String, Object> getKeysSize() throws CoboException;


    Map<String, Object> getMemoryInfo() throws CoboException;
}
